<admintpl file="header" />
</head>
<body style="min-width: 800px;">
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="">数据预览</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('index')}">
			姓名
			<input type="text" name="name" style="width: 200px;" value="{$_REQUEST[name]}">
			工号
			<input type="text" name="sn" style="width: 200px;" value="{$_REQUEST[sn]}">
			
			<button class="btn btn-primary">搜索</button>
			<a class="btn btn-primary" href="{:U('')}">清空</a>
		</form>
		<form class="js-ajax-form" method="post">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th width="50">工号</th>
						<th width="">姓名</th>
						<th width="">入职时间</th>
						<th width="">总数</th>
						<th width="">使用期限</th>
						<th width="">可休年假</th>
						<th width="">可用病假(全日薪)</th>
						<th width="">可用病假(半日薪)</th>
						<th width="">操作</th>
						
					</tr>
				</thead>
				<foreach name="list" item="vo">
				<notempty name='vo.ep_name'>
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.sn}</td>
						<td><a href="{:U('edit',['id'=>$vo[id]])}">{$vo.ep_name}</a></td>
						<td>{$vo.join_date}</td>
						<td>{:time_day_8hour_zh($vo[total_min])}</td>
						<td>{$vo.start_date} 至  {$vo.end_date}</td>
						<td>{:time_day_8hour_zh($vo[total_min]-$vo[consume_min])}</td>
						<td>{:time_day_8hour_zh($vo[sick_full_remain])}</td>
						<td>{:time_day_8hour_zh($vo[sick_half_remain])}</td>
						<td>
							<a href="{:U('edit',['id'=>$vo[id]])}">编辑</a>
						</td>
					</tr>
				</notempty>
				</foreach>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>